{include file="Public:header" /}
 <link rel="stylesheet" href="__PUBLIC__/Admin/bootstrap-datetimepicker-master/css/bootstrap-datetimepicker.min.css" media="screen"/>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
                    <div class="ibox-title">
                        {if condition="$act eq 'add'"}
                    		<h5>添加订单</h5>
                    	{else/}
                    		<h5>修改订单</h5>
                    	{/if}
                        <div class="ibox-tools" style="margin-top: -6px;">
                            <button onclick="history.go(-1);" class="btn btn-primary"><i class="fa fa-arrow-left"></i> 返回</button>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form action="__URL__/addOrder" method="post" class="form-horizontal" id="defaultForm" enctype="multipart/form-data">
                        	
                        	<div class="form-group">
                                <label class="col-sm-2 control-label">订单编号</label>
                                <div class="col-sm-6">
                                    <input type="text" name="order_form" disabled="false" value="{$order['order_form']}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">预约主题名称</label>
                                <div class="col-sm-6">
                                    <input type="text" name="position" value="{$order['position']}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        
                           <div class="form-group">
                                <label class="col-sm-2 control-label">专家姓名</label>
                                <div class="col-sm-6">
                                    <input type="text" name="name" value="{$order['name']}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">用户姓名</label>
                                <div class="col-sm-6">
                                    <input type="text" name="username" value="{$order['username']}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">联系方式</label>
                                <div class="col-sm-6">
                                    <input type="text" name="phone" value="{$order['phone']}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱</label>
                                <div class="col-sm-6">
                                    <input type="text" name="email" value="{$order['email']}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">金额</label>
                                <div class="col-sm-6">
                                    <input type="text" name="pay" value="{$order['pay']}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">订单状态</label>
                                <div class="i-check col-sm-6" style="line-height: 30px;">
                                <input type="radio"  name="order_status" value="1"  {if condition="($order['order_status'] eq 1) or ($order['order_status'] eq '')"}checked="checked"{/if}/>
                              	  待付款&nbsp;
                                <input type="radio" name="order_status" value="2" {if condition="$order['order_status'] eq 2"}checked="checked"{/if}/>
                               	 待参与&nbsp;
                               	<input type="radio" name="order_status" value="3" {if condition="$order['order_status'] eq 3"}checked="checked"{/if}/>
                               	 已完成&nbsp;
                               	<input type="radio" name="order_status" value="4" {if condition="$order['order_status'] eq 4"}checked="checked"{/if}/>
                               	 已取消&nbsp;
                            </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                                <div class="form-group">
                                <label class="col-sm-2 control-label">支付状态</label>
                                <div class="i-check col-sm-6" style="line-height: 30px;">
                                <input type="radio" name="status" value="1" {if condition="($order['status'] eq 1) or ($order['status'] eq '')"}checked="checked"{/if} />
                              	  未支付&nbsp;
                                <input type="radio" name="status" value="2" {if condition="$order['status'] eq 2"}checked="checked"{/if}/>
                               	 已支付&nbsp;
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">预约时间</label>
                                <div class="col-sm-6">
                                    <select name='select_time' class="form-control">>
                                        <option value='1' {if condition="$order['select_time'] eq 1"}selected{/if}>星期一</option>
                                        <option value='2' {if condition="$order['select_time'] eq 2"}selected{/if}>星期二</option>
                                        <option value='3' {if condition="$order['select_time'] eq 3"}selected{/if}>星期三</option>
                                        <option value='4' {if condition="$order['select_time'] eq 4"}selected{/if}>星期四</option>
                                        <option value='5' {if condition="$order['select_time'] eq 5"}selected{/if}>星期五</option>
                                        <option value='6' {if condition="$order['select_time'] eq 6"}selected{/if}>星期六</option>
                                        <option value='0' {if condition="$order['select_time'] eq 0"}selected{/if}>星期日</option>
                                    </select>
                                    <!--<input type="text" name="select_time" value="{$order['select_time']}" class="form-control">-->
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <div class="form-group">
                                <label class="col-sm-2 control-label">下单时间</label>
                                <div class="col-sm-6">
                                    <input type="text" disabled="false" name="create_time" value="{$order['create_time']|date='Y-m-d H:i:s',###}" class="form-control">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            
                            <input type="hidden" name="act" value="{$act}" />
                            <input type="hidden" name="id" value="{$id}" />
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存</button>
                                    <button class="btn btn-white" type="submit">取消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
				</div>
			</div>
		</div>
	</div>


	{include file="Public:footer" /}
<!-- 	 <script src="__PUBLIC__/Home/js/region_select.js"></script>
      <script type="text/javascript">
                new PCAS('province', 'city', 'area', '{$activity['province']?$activity['province']:'广东省'}', '{$activity['city']?$activity['city']:'广州市'}', '{$activity['area']?$activity['area']:'天河区'}');
     </script>
	<script src="__PUBLIC__/ueditor/ueditor.config.js" type="text/javascript"></script>
    <script src="__PUBLIC__/ueditor/ueditor.all.js" type="text/javascript"></script> -->

<script>
           //UE.getEditor('editor');
           /* UE.getEditor('editor', {
               theme:"default", //皮肤
               lang:'zh-cn', //语言
               serverUrl: '/server/ueditor/controller.php'
           }); */

          /*UE.getEditor('editor');
            UE.getEditor('requirement');
            UE.getEditor('prize_set'); */
 </script>   

	<script>
$(document).ready(function() {

    /**
     * 下面是进行插件初始化
     * 你只需传入相应的键值对
     * */
    $('#defaultForm').bootstrapValidator({
            message: 'This value is not valid',
            feedbackIcons: {/*输入框不同状态，显示图片的样式*/
            	  valid: 'glyphicon glyphicon-ok',
                  invalid: 'glyphicon glyphicon-remove',
                  validating: 'glyphicon glyphicon-refresh'
            },
            fields: {/*验证*/
            	name: {/*键名username和input name值对应*/
                    message: '收货人验证失败',
                    validators: {
                        notEmpty: {/*非空提示*/
                            message: '收货人不能为空'
                        },
                        stringLength: {/*长度提示*/
                            min: 2,
                            max: 30,
                            message: '收货人长度必须在2到30之间'
                        }/*最后一个没有逗号*/
                    }
                },
                mobile: {/*键名username和input name值对应*/
                    message: '联系方式验证失败',
                    validators: {
                        notEmpty: {/*非空提示*/
                            message: '联系方式不能为空'
                        },
                        stringLength: {/*长度提示*/
                            min: 2,
                            max: 30,
                            message: '联系方式长度必须在2到30之间'
                        }/*最后一个没有逗号*/
                    }
                },
                number: {/*键名username和input name值对应*/
                    message: '票数验证失败',
                    validators: {
                        notEmpty: {/*非空提示*/
                            message: '票数不能为空'
                        },
                        stringLength: {/*长度提示*/
                            min: 1,
                            max: 30,
                            message: '票数长度必须在1到30之间'
                        }/*最后一个没有逗号*/
                    }
                }
               
            }
            // 还有一个比较常用的就是submitHandler属性，它对应着提交按钮的事件方法。
            // submitHandler: function (validator, form, submitButton) {
                //alert("submit");
               /*  var menu_name = $("input[name='menu_name']").val();
                var link = $("input[name='link']").val();
                var ico = $("input[name='ico']").val();
                $.ajax({
                    url : '__URL__/addMenu',
                    type : 'get',
                    data : {'menu_name' : menu_name, 'link' : link, 'ico':ico},
                    dataType : 'json',
                    success : function(data){
                      alert(data.message);
                    }
                }); */
           // }
        });
});

</script>

<!-- <script type="text/javascript" src="__PUBLIC__/Admin/bootstrap-datetimepicker-master/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="__PUBLIC__/Admin/bootstrap-datetimepicker-master/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>

<script type="text/javascript">
        $('#datetimepicker6').datetimepicker({
             language:  'zh-CN',
             format: 'yyyy-mm-dd HH:ii',
             autoclose:true,//日期选择完成后是否关闭选择框
        });
        $('#datetimepicker7').datetimepicker({
            language:  'zh-CN',
            format: 'yyyy-mm-dd HH:ii',
            autoclose:true //Important! See issue #1075
        });
</script>

 <script src="__PUBLIC__/Admin/js/plugins/prettyfile/bootstrap-prettyfile.js"></script>
 <script type="text/javascript">
 $(function(){
    $('#file-pretty input[type="file"]').prettyFile();
 });

 //修改菜单
function lookImg(){
    $('#myModal').modal('show');
}
 </script> -->

       
</body>
</html>
